﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaskProject.Domain.BOM;
using TaskProject.Domain.Plan;
using TaskProject.Domain.Production;

namespace TaskProject.InfrasIntructure
{
    public class TaskDbContext : DbContext
    {
        public TaskDbContext(DbContextOptions options) : base(options)
        {
        }
        public DbSet<MaterialModel> MaterialModel { get; set; }
        public DbSet<ProductModel> ProductModel { get; set; }
        public DbSet<BOMModel> BOMModel { get; set; }
        public DbSet<CraftModel> CraftModel { get; set; }
        public DbSet<LeaderModel> LeaderModel { get; set; }
        public DbSet<ProductItemModel> ProductItemModel { get; set; }
        public DbSet<ProductProcessModel> ProductProcessModel { get; set; }
        public DbSet<WorkorderModel> WorkorderModel { get; set; }
        public DbSet<ReportWorkModel> ReportWorkModel { get; set; }
        public DbSet<ProductionPlanModel> ProductionPlanModel { get; set; }
        public DbSet<ProductionPlanItemModel> ProductionPlanItemModel { get; set; }
        public DbSet<ProductionPlanAttachmentModel> ProductionPlanAttachmentModel { get; set; }
    }
}
